package com.example.cmtwo.service;

import com.example.cmtwo.mapper.BackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OwnReportService
{
    @Autowired
    private BackMapper backMapper;

    public boolean insertReport(Integer Id, Integer Who, String Type, Integer Phone, String Why)
    {
        try {
            backMapper.insertReport(Id, Who, Type, Phone, Why);
        }catch (Exception e)
        {
            System.out.println(e);
            return false;
        }

        return true;
    }

}
